console.log('loading rewrite')
Array.prototype.remove=function (val,protoName="") {
    console.log("befor",arguments)
    if (isNaN(val)&&!val ) { return false; }
    if (protoName!=''){
        console.log("obj")
        for( let i = 0; i < this.length-1; i++){
            if ( val === this[i][protoName]) {
                this.splice(i, 1);
                break
            }
        }
        this.length -= 1
    }else {
        console.log("not obj")
        for( let i = 0; i < this.length-1; i++){
            if ( val === this[i]) {
                this.splice(i, 1);
                break
            }
        }
        this.length -= 1
    }
    console.log("after remove",this)
    return true
}
